/**
 * 
 */
package com.ccqlk.attendance.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.ui.Model;import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Copyright 2015-2018 重庆鲁控科技有限公司<br>
 * 文件标题: LoginController<br>
 * 文件说明: TODO<br>
 * @author ZhangYinxian 348893009@qq.com<br>
 * 创建时间 2016年5月26日 下午3:49:47<br>
 */
@Controller
public class LoginController {

	@RequestMapping(value="login", method=RequestMethod.GET)
	public String login(HttpServletRequest request, Model model){
		
		return "login";
	}
	
	@RequestMapping(value="login", method=RequestMethod.POST)
	@ResponseBody
	public Model login(HttpServletRequest request, HttpServletResponse response, Model model){
		model.addAttribute("post");
		return model;
	}
}
